#include <allegro.h>
#include <stdio.h>

#define GFX_W 850
#define GFX_H 600
#define NB_IMAGES 4


typedef struct {
int x;
int y;
int direction;
BITMAP *tab_gang_right[NB_IMAGES];
} Gangsters ;


int get_pixel(BITMAP* Buffer,int x,int y);

BITMAP* load_background_bmp(BITMAP *Background);
void draw_background(BITMAP *Background,BITMAP*Buffer);
void destroy_background(BITMAP * Background);

void load_gangsters(Gangsters *gang);
void destroy_gangsters(Gangsters *gang);
void init_gangsters(Gangsters *gang);

void move_gangsters_right(Gangsters *gang,int *compteur,BITMAP * Background);
void move_gangsters(Gangsters *gang,int *compteur,BITMAP * Background);
void draw_gangsters(Gangsters gang,BITMAP *Buffer, int compteur);
